import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/common/Login'
import Index from '@/components/Index'
import News from '@/components/newsManagement/News'
import Register from '@/components/common/Register'
import Upload from '@/components/Upload'
// import Hello from '@/components/Hello'
Vue.use(Router)
export default new Router({
    routes: [{
        path: '/',
        name: 'Login',
        component: Login
    },{
    	path: '/index',
    	name: 'Index',
    	component: Index,
        children: [{
            path: 'news',
            name: 'News',
            component: News
        },{
            path: 'upload',
            name: 'Uplaod',
            component: Upload
        }]
    },{
        path:'/register',
        name:'Register',
        component:Register
    }]
})